Previous Book Contents Book Index Next

Inside Macintosh: Mac OS 8 Toolbox Reference /
Chapter 1 - Appearance Manager Reference / Appearance Manager Types and Constants


Appearance-Compliant Draw State Constants

NEW WITH THE APPEARANCE MANAGER

You can pass constants of type ThemeDrawState in the inState parameter of functions used for drawing human interface elements to specify whether they are drawn as active (normal), selected (pressed), or inactive (disabled). For descriptions of the functions that use these constants, see "Drawing Appearance-Compliant Controls".

enum {
   kThemeStateDisabled = 0,
   kThemeStateActive   = 1,
   kThemeStatePressed  = 2
};
typedef UInt32 ThemeDrawState;

Constant descriptions

kThemeStateDisabled
Element is drawn in its disabled, inactive state.
kThemeStateActive
Element is drawn in its normal, active state.
kThemeStatePressed
Element is drawn in its selected, pressed state.

Previous Book Contents Book Index Next

© Apple Computer, Inc.
8 JAN 1998